class A{
	public void tell1(){
		System.out.println("A-tell1");
	}
	public void tell2(){
		System.out.println("A-tell2");
	}
}
class B extends A{
	public void tell1(){
		System.out.println("B-tell1");
	}
	public void tell3(){
		System.out.println("B-tell3");
	}
}
public class Test{
	public static void main(String[] args){
		// B b =new B();
		A a = new B();
		a.tell1();
		a.tell2();
		// a.tell3();
		B b = new A();
		b.tell1();
		b.tell2();
		b.tell3();		
	}
}